extends Control


func _on_跃踏_pressed():
	ObjectManager.soundManager.play(SoundType.button_click)
	if !GameUtils.checkIsReadyAction() || !GameUtils.checkActionEnough(SpendData.COST_野马_IMPACT):
		return
	ObjectManager.gameManager.operationManager.changeOperationType(OperationType.野马_impact)
	visible = false
	ObjectManager.gameManager.ui.closeDesc()


func _on_跃踏_mouse_entered():
	var ui = ObjectManager.gameManager.ui as UI
	ui.wantShowDesc("踏跃：消耗2点能量，移动到落点，如果有敌方大子先进行攻击，地形不适应也会死亡")


func _on_mouse_exited():
	var ui = ObjectManager.gameManager.ui as UI
	ui.closeDesc()
